<?php
/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Story
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
$members = $this->story->membership()->getMembers();
foreach($members as $row){
	$member = $row->getOwner()->toString();
	break;
}
?>

	<ul>
	  <?php if ($this->show_owner !== false): ?>
	  	<?php if(count($members->toArray())==0){ ?>
	    <li class="story_meta_owner"><?php echo $this->translate($this->display_style == 'narrow' ? 'By %s' : 'Posted by %s', $this->story->getOwner()->toString()); ?>
		 in <?php echo $this->story->getCategory()->category_name; ?> <?php echo $this->timestamp($this->story->creation_date); ?>
		</li>
		<?php }else{ ?>
		<li class="story_meta_owner"><?php echo $this->translate($this->display_style == 'narrow' ? 'By %s and %s' : 'Posted by %s and %s', $this->story->getOwner()->toString(), $member); ?>
		 in <?php echo $this->story->getCategory()->category_name; ?> <?php echo $this->timestamp($this->story->creation_date); ?>
		</li>
		<?php } ?>
	  <?php endif; ?>
	  <!--
	  <?php if ($this->show_date !== false): ?>
	    <li class="story_meta_date"><?php //echo $this->timestamp($this->story->creation_date); ?></li>
	  <?php endif; ?>
	  <?php if ($this->show_comments !== false): ?>
	    <li class="story_meta_comments"><?php //echo $this->translate(array("%s comment", "%s comments", $this->story->comment_count), $this->locale()->toNumber($this->story->comment_count)); ?></li>
	  <?php endif; ?>
	  <?php if ($this->show_likes !== false): ?>
	    <li class="story_meta_likes"><?php //echo $this->translate(array('%1$s like', '%1$s likes', $this->story->like_count), $this->locale()->toNumber($this->story->like_count)); ?></li>
	  <?php endif; ?>
	  <?php if ($this->show_views !== false): ?>
	    <li class="story_meta_views"><?php //echo $this->translate(array('%s view', '%s views', $this->story->view_count), $this->locale()->toNumber($this->story->view_count)); ?></li>
	  <?php endif; ?>
	  -->
	</ul>
